package com.weipai.education.mapper;

import com.weipai.education.model.Exchange;
import org.apache.ibatis.annotations.Param;
import org.omg.CORBA.Object;

import java.util.List;
import java.util.Map;

public interface ExchangeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Exchange record);

    int insertSelective(Exchange record);

    Exchange selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Exchange record);

    int updateByPrimaryKey(Exchange record);

    List<Map<String,Object>> list(@Param("start") Integer start, 
                                     @Param("end") Integer size, 
                                     @Param("startTime") String startTime, 
                                     @Param("endTime") String endTime, 
                                     @Param("orderType") String orderType, 
                                     @Param("userId") String userId, 
                                     @Param("orderNumber") String orderNumber);

    Integer listAmount(@Param("startTime") String startTime, 
                          @Param("endTime") String endTime, 
                          @Param("orderType") String orderType, 
                          @Param("userId") String userId, 
                          @Param("orderNumber") String orderNumber);

    List<Map<String,Object>> exchangeInfo( @Param("id") String id );

    Exchange selectExchangeByExchangeNumber(@Param("exchangeNumber") String exchangeNumber);
}